//
//  SCNFinancialPlannerCell.swift
//  ShoucainuSwift
//
//  Created by 王家旭 on 2017/9/12.
//  Copyright © 2017年 Riluee. All rights reserved.
//

import UIKit

class SCNFinancialPlannerCell: UITableViewCell {

    lazy var titleL: UILabel = {
        let lab = UILabel()
        lab.textColor = SCNConstants.colorWith255RGBA(136, g: 136, b: 136, a: 1)
        lab.font = UIFont.systemFont(ofSize: 15.0)
        lab.text = "方式一"
        return lab
    }()
    lazy var contenL: UILabel = {
        let lab = UILabel()
        lab.textColor = SCNConstants.colorWith255RGBA(36, g: 36, b: 36, a: 1)
        lab.font = UIFont.systemFont(ofSize: 15.0)
        lab.text = "方式一"
        return lab
    }()
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        contentView.addSubview(titleL)
        contentView.addSubview(contenL)
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        
        titleL.snp.makeConstraints { (make) in
            make.leading.equalTo(10)
            make.top.equalTo(15)
            make.size.equalTo(CGSize(width: 55, height: 22))
        }
        contenL.snp.makeConstraints { (make) in
            make.leading.equalTo(75)
            make.top.equalTo(15)
            make.size.equalTo(CGSize(width: self.frame.size.width - 80, height: 20))
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
